#include "LightSample.h"

LightSample::LightSample(void)
{
	v = new Vertex();
	ldir = new Vector3();
	le = new Color();
	shadowRay = 0;
	isValid = false;
}

LightSample::~LightSample(void)
{
}

void LightSample::set( LightSample* sample )
{
	v->set(*(sample->v));
	ldir->set(sample->ldir);
	le->set(sample->le);
	shadowRay = sample->shadowRay;
	isValid = sample->isValid;
}

void LightSample::setValid( bool isValid )
{
	this->isValid = isValid;
}

void LightSample::setShadowRay( Ray* shadowRay )
{
	this->shadowRay = shadowRay;
}

bool LightSample::getIsValid()
{
	return isValid;
}

Vertex* LightSample::getVertex()
{
	return v;
}

Vector3* LightSample::getDirection()
{
	return ldir;
}

Color* LightSample::getRadiance()
{
	return le;
}

Ray* LightSample::getShadowRay()
{
	return shadowRay;
}